<?php
/**
 * Created by PhpStorm.
 * User: 24369
 * Date: 2021/6/25
 * Time: 16:47
 */
namespace app\admin\validate;

use think\Validate;

class CateValidate extends Validate{
    protected $rule=[
        'name'=>'require',
        'sort'=>'require'
    ];
    protected $scene=[
        'add'=>['name','sort'],
        'edit'=>['name','sort']
    ];
}